home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / fileutil.zip / CHANGELO.G < prev    next >
Text File  |  1990-09-10  |  45KB  |  1,214 lines

  1. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2.  
  3.     * Version 1.4.
  4.  
  5.     * cat.c, cp.h: Declare free returning void, not int, so it
  6.     doesn't bomb on Xenix.
  7.  
  8. Fri Sep  7 04:35:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  9.  
  10.     * system.h, backupfile.c, savedir.c [DIRENT]: if direct is
  11.     defined (as on Ultrix 4.0), undefine it before redefining it.
  12.  
  13. Tue Sep  4 03:10:24 1990  David J. MacKenzie  (djm at apple-gunkies)
  14.  
  15.     * dd.c (apply_translations, translate_charset): Code moved
  16.     from parse_conversion.
  17.     (apply_translations): Convert from EBCDIC to ASCII before
  18.     converting case.
  19.  
  20.     * mvdir.c (fullpath): Return a value.
  21.  
  22.     * dd.c (copy): Increment count of truncated records once
  23.     per record, not once per character that overflows.
  24.  
  25. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  26.  
  27.     * tac.c: Print error messages before calling cleanup, not after.
  28.  
  29.     * dd.c (swab_array): Function removed.
  30.     (copy): Rewrite conv=swab to work when odd number of bytes
  31.     are read.
  32.     (scanargs): Die if invalid numeric value is given.
  33.     (parse_integer): Return -1 if invalid arg.
  34.     (bit_count): Faster version from Jim Meyering.
  35.  
  36.     * cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
  37.  
  38. Thu Aug 30 00:17:02 1990  David J. MacKenzie  (djm at apple-gunkies)
  39.  
  40.     * mvdir.c (main): Make sure `from' is not a parent of any part
  41.     of `to', not just the explicitly given part.
  42.     (fullpath): New function.
  43.  
  44. Wed Aug 29 19:50:05 1990  David J. MacKenzie  (djm at apple-gunkies)
  45.  
  46.     * mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
  47.     * dirlib.c: Caller changed.
  48.  
  49. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  50.  
  51.     * touch.c (main): Don't interpret first non-option arg as a
  52.     time if `--' is given (POSIX-required kludge).
  53.  
  54.     * touch.c: Add long-named options.
  55.  
  56.     * Many files: Include <getopt.h> instead of "getopt.h" since
  57.     getopt.h will be in the GNU /usr/include.
  58.  
  59.     * tac.c (cleanup): Return SIGTYPE, not int.
  60.  
  61.     * install.c: Declare some functions.
  62.  
  63.     * touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
  64.  
  65.     * posixtime.y: Move year from before time to after it (but
  66.     before the seconds), for 1003.2 draft 10.
  67.  
  68. Mon Aug 27 03:25:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  69.  
  70.     * touch.c (main): If no time is given and first arg is a valid
  71.     timespec, use it as one.
  72.  
  73. Sat Aug 25 01:36:16 1990  David J. MacKenzie  (djm at apple-gunkies)
  74.  
  75.     * posixtime.y: Enclose YYABORT in braces in case some yacc's
  76.     need it.
  77.  
  78.     * touch.c: Remove -i option.  Change some error messages.
  79.     (readname): Function removed.
  80.  
  81. Thu Aug 23 12:56:33 1990  David J. MacKenzie  (djm at apple-gunkies)
  82.  
  83.     * cp.c (copy): Only restore dir mode if it was changed.
  84.  
  85. Wed Aug 22 01:45:54 1990  David J. MacKenzie  (djm at apple-gunkies)
  86.  
  87.     * cp.c (copy): Don't only backup files when -f is given.
  88.  
  89.     * ls.c: Add -X +sort=extension option.  Rename
  90.     +kilobyte-file-size to +kilobytes.
  91.  
  92.     * du.c: Rename -f option to -x, for POSIX.  Rename
  93.     +kilobyte-file-size to +kilobytes.  Add -b, +bytes option for
  94.     POSIX. 
  95.  
  96.     * cp-aux.c (usage): Change -o to -x.
  97.     (stpcpy): Renamed from str_cpy.  Change callers in cp.c.
  98.  
  99.     * cp.c: New variable, `flag_copy_as_regular'.
  100.     (main): For -R, unset `flag_copy_as_regular'.
  101.     Rename -o to -x for consistency with du.
  102.     (copy): Only unlink destination files when -f is given.
  103.     Only prompt when -i given and copying as a regular file.
  104.     Move check for previous link after other checks, reducing
  105.     duplicate code.
  106.     Create directories with mode 0700 initially, for POSIX.
  107.  
  108. Mon Aug 20 03:29:08 1990  David J. MacKenzie  (djm at apple-gunkies)
  109.  
  110.     * dd.c (copy): Swap input bytes instead of output bytes.
  111.     (swab_array): New function.
  112.  
  113.     * dd.c (copy): If sync and noerror, zero the buffer before the
  114.     read instead of after so that any data read before an error
  115.     occurred are preserved.
  116.     On read error, print stats and seek past the bad block if
  117.     noerror.
  118.     noerror doesn't affect write errors, for POSIX.
  119.     (scanargs): Use two buffers if no buffer sizes given.
  120.     Do not block or unblock if cbs not given.
  121.     (print_stats): New function.
  122.     (quit): Call it.
  123.  
  124. Mon Aug 13 23:30:03 1990  David J. MacKenzie  (djm at apple-gunkies)
  125.  
  126.     * cp.c (copy): If dest. exists and is unwritable, skip the
  127.     file.
  128.  
  129.     * rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
  130.     for POSIX.
  131.  
  132.     * rm.c (remove_file): Only prompt if -i is given.
  133.     (main, usage): Remove -o +override-mode option, obsolete if
  134.     POSIX accepts our objection about prompting.
  135.  
  136.     * mv.c (do_move): Only prompt if -i is given.
  137.  
  138.     * ln.c (do_link): If dest. file exists and -i and -f not
  139.     given, skip the file.
  140.  
  141. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  142.  
  143.     * dd.c (main): If seek= given, don't truncate output file.
  144.     (copy): Use `read' to skip output blocks if not regular file.
  145.     Sync with NUL instead of SPC.
  146.  
  147.     * cut.c (main, usage): Add -b and -n options for POSIX.
  148.     (set_fields): Don't allow SPC or TAB as number separators.
  149.  
  150.     * paste.c (paste_parallel): If open of any file fails, quit
  151.     (for POSIX).
  152.  
  153. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  154.  
  155.     * head.c, tail.c: Change `chars' to `bytes' globally.
  156.     (main, usage): Use POSIX.2 draft 10 option syntax.
  157.  
  158.     * rm.c: Rename `ignore_errors' to `ignore_missing_files', and
  159.     have it only suppress messages about nonexisting files.
  160.     (main): Get dev and ino of `.' and `..'.
  161.     (rm): If file is the same as `.' or `..', return with error.
  162.     (remove_file): Remove the file rather than skipping it if
  163.     unwritable, no -i, and stdin not tty.
  164.     (remove_dir): Return an error if directory is nonwritable,
  165.     rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
  166.  
  167.     * chmod.c (main): Use fixed error checking to make sure that
  168.     options aren't mixed together in the same args as mode specifiers.
  169.  
  170. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  171.  
  172.     * chmod.c (main): Use umask for '-' op.
  173.  
  174.     * cat.c (main): Don't delay error messages, so they appear
  175.     where expected.
  176.     (main, simple_cat, cat): Make errors in input files nonfatal.
  177.  
  178. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  179.  
  180.     * mkfifo.c: Remove -p +path option, no longer specified by POSIX.
  181.  
  182.     * cat.c: Remove -c option added for POSIX draft 9, since POSIX
  183.     draft 10 removed it. 
  184.  
  185.     * tac.c (tac_stdin): Use fstat instead of lseek to determine
  186.     whether stdin is seekable, because lseek silently fails on
  187.     some special files, like tty's.
  188.     tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
  189.     don't turn off -f for non-regular files (assume the user knows
  190.     what he's doing; it might work for fifo's and sockets).
  191.  
  192.     * paste.c (main): If no files given, use stdin.
  193.     Don't let collapse_escapes write on string constant (delim default).
  194.     (paste_parallel): Don't close stdin.
  195.  
  196.     * cut.c (main): Use standard input for filename of "-".
  197.  
  198. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  199.  
  200.     * mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile
  201.     to respect the umask for certain operations, since the umask
  202.     is 0 anyway. 
  203.  
  204.     * cut.c (enlarge_line): Take an arg giving the required amount
  205.     of space.  Change callers.
  206.     (main): Don't allow -t'<TAB>' without -f.
  207.     Make `delim' unsigned to fix sign extension problem in comparison.
  208.  
  209.     * install.c (get_ids): Use getuid and getgid to get defaults,
  210.     instead of -1.
  211.  
  212. Fri Jul 27 14:32:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  213.  
  214.     * backupfile.c (dirname): Always replace frontmost slash with
  215.     a null.
  216.  
  217. Thu Jul 26 00:20:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  218.  
  219.     * cp.h: Declare umask as unsigned short.
  220.  
  221.     * eaccess.c: Make uid and gid unsigned short, and group array
  222.     unsigned. 
  223.  
  224. Wed Jul 25 18:38:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  225.  
  226.     * rm.c (remove_file, remove_dir): Print verbose message right
  227.     before actually trying to remove the file, after the prompting.
  228.  
  229.     * ls.c (getuser, getgroup): Make uid and gid unsigned short,
  230.     not int.
  231.  
  232. Tue Jul 24 03:39:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  233.  
  234.     * cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
  235.     print the file names just before actually attempting the
  236.     copy/link/move, to produce a list of the files that they
  237.     actually try to copy/link/move, omitting skipped files.
  238.     Remove leading spaces from +verbose output.
  239.  
  240. Mon Jul 23 16:57:44 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  241.  
  242.     * cp.c (copy): Make +update operate silently, like
  243.     +one-file-system. 
  244.  
  245.     * ln.c: Add -F as synonym for -d, for SunOS compatibility.
  246.  
  247. Tue Jul 17 17:58:26 1990  David J. MacKenzie  (djm at apple-gunkies)
  248.  
  249.     * cut.c, paste.c: New files.
  250.  
  251. Sun Jul 15 23:23:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  252.  
  253.     * cp.c (copy): Go back to using xstat on dest.
  254.  
  255. Wed Jul 11 12:10:33 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  256.  
  257.     * cp.c (copy): Make directories with desired mode plus u+wx so
  258.     if the copy is interrupted, the dir is closer to the desired mode.
  259.     Don't backup directories.
  260.  
  261. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  262.  
  263.     * rm.c (main, usage): Add new option -d, +directory.
  264.     (rm): If -d given, use remove_file instead of remove_dir for
  265.     directories. 
  266.     (remove_file): If directory, print "remove directory `foo'?"
  267.     for interactive instead of "remove `foo'?".
  268.  
  269.     * cmp.c (main, usage): Rename -L option to -c and don't have
  270.     it imply -l. 
  271.     (printc): Take an arg to specify number of chars to pad to,
  272.     for column alignment.
  273.     (cmp): Respect flag_print_chars in default output format.
  274.     Align columns for cmp -cl.
  275.  
  276.     * ln.c (main): If -s given, print warning message if symlinks
  277.     are not available.
  278.     * mkfifo.c (main): If fifo's are not available, print message
  279.     and exit.
  280.  
  281. Sat Jul  7 17:23:30 1990  David J. MacKenzie  (djm at apple-gunkies)
  282.  
  283.     * create.c (main): Only use TMPDIR if directory is writable.
  284.     For -p, validate pathname length and (if -P) portability,
  285.     and don't complain if file already exists, and don't create it
  286.     if -n is given. 
  287.     (make_new_file): Created from code in main.
  288.     (ensure_path_exists): Don't try to stat "" or "/".  Take arg
  289.     indicating whether to set existing file's mode.
  290.     Return value indicating whether file needs to be created.
  291.     (validate_new_path): Take arg indicating whether to check if
  292.     directories in path exist.  Don't check whether file exists.
  293.  
  294.     * cmp.c: For +show-chars, have getopt return 'L' so
  295.     `flag_print_chars' gets set.
  296.  
  297. Fri Jul  6 02:02:49 1990  David J. MacKenzie  (djm at apple-gunkies)
  298.  
  299.     * install.c (main): Use the current user and group ID for the
  300.     default owner and group.
  301.  
  302.     * cat.c, cp.c, head.c, install.c, ln.c, ls.c, mkdir.c,
  303.     mkfifo.c, mv.c, rm.c, tac.c, tail.c (main): Don't change the
  304.     option character if it's 0, as getopt now handles that internally.
  305.  
  306.     * mv.c (main): New option -u, +update.
  307.     (do_move): Don't move nondirectories if -u and there is an existing 
  308.     destination that has the same or newer mtime.
  309.     (usage): Document -u, +update.
  310.  
  311.     * cp.c (main): New option -u, +update.
  312.     (copy): Don't copy nondirectories if -u and there is an existing 
  313.     destination that has the same or newer mtime.
  314.     * cp-aux.c (usage): Document -u ,+update.
  315.  
  316. Thu Jul  5 10:04:12 1990  David J. MacKenzie  (djm at apple-gunkies)
  317.  
  318.     * ln.c (do_link): Don't check whether OLD exists before trying
  319.     to make link.
  320.  
  321. Tue Jul  3 01:51:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  322.  
  323.     * ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
  324.  
  325.     * chmod.c (main): Don't check whether multiple mode arguments
  326.     are given, because optind has a different value depending on
  327.     whether or not the option is the last character in the
  328.     ARGV-element.
  329.  
  330. Sat Jun 30 12:32:51 1990  David J. MacKenzie  (djm at apple-gunkies)
  331.  
  332.     * cp.c (copy): Use lstat on dest. file, not *xstat.
  333.  
  334. Fri Jun 29 01:04:19 1990  David J. MacKenzie  (djm at apple-gunkies)
  335.  
  336.     * tac.c (main): Initialize fastmap and translate fields of
  337.     regex before compiling it.
  338.  
  339. Mon Jun 25 18:07:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  340.  
  341.     * ls.c (print_long_format): Truncate user and group names to 8
  342.     chars to preserve column alignment.
  343.     (length_of_file_name_and_frills): Don't assume type indicator
  344.     will be printed for unknown file types that some os's have.
  345.  
  346.     * install.c: Declare getgrnam for systems where grp.h doesn't.
  347.  
  348. Sat Jun 23 00:06:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  349.  
  350.     * Version 1.3.
  351.  
  352.     * du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
  353.     according to the number of blocks reported is twice or more than
  354.     the size of the file according to the number of bytes
  355.     reported, halve the number of blocks.
  356.  
  357. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  358.  
  359.     * tac.c: Change +regexp to +regex for consistency with GNU find.
  360.  
  361.     * cp.c (copy_dir): Initialize 'ret' to 0.
  362.  
  363.     * cp.c (main), ln.c (main), mv.c (main), rm.c (main):
  364.     Make -i override -f and -o, to be conservative about
  365.     removing peoples' files.
  366.  
  367.     * mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
  368.     "" or "/".
  369.  
  370.     * rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
  371.     slashes at the end of an arg from main to
  372.     strip_trailing_slashes. 
  373.  
  374.     * install.c (strip): Print error message if the `strip'
  375.     program can't be run.
  376.  
  377.     * system.h (convert_blocks): Macro moved from du.c and ls.c.
  378.     Take a second parameter indicating whether to convert to
  379.     kilobytes or 512 byte blocks.
  380.     * ls.c, du.c: Pass second parameter to convert_blocks.
  381.  
  382. Thu Jun 21 01:19:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  383.  
  384.     * ls.c (print_long_format): Use mode_string instead of
  385.     filemodestring. 
  386.  
  387.     * ls.c (print_long_format): Compare times as longs, not ints.
  388.     (longdiff): Macro to compare two longs efficiently if sizeof
  389.     int == sizeof long and less efficiently but correctly if they
  390.     are different sizes.
  391.     (compare_ctime, etc.): Use longdiff.
  392.  
  393.     * ls.c (decode_switches): Make -k not imply -s, to allow the
  394.     summary directory size printed by -l to be in 1k blocks
  395.     without having the size of each file printed as well.
  396.     (convert_blocks): Provide for systems with a blocksize that is
  397.     other than 512 or 1024 bytes.
  398.  
  399.     * du.c (main): Exit with status 0 normally.
  400.     (convert_blocks): Provide for systems with a blocksize that is
  401.     other than 512 or 1024 bytes.
  402.  
  403. Wed Jun 20 01:52:02 1990  Brian Fox  (bfox at albert.ai.mit.edu)
  404.  
  405.     * paste.c: Added test to check that there was an argument
  406.     before dereferencing the argv vector.
  407.  
  408. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  409.  
  410.     * cat.c (cat): If FIONREAD is available, only use it if it is
  411.     supported by the filesystem that the file is on.
  412.  
  413.     * ln.c (do_link): Take out code to give an error if source and
  414.     dest are the same file.  The dubious usefulness of the special
  415.     case to prevent 'ln x x' from removing 'x' (ln -i can be used
  416.     instead) is not worth preventing 'ln x y' from failing the
  417.     second time in a row, and appears to contradict POSIX anyway.
  418.  
  419. Mon Jun 18 02:48:17 1990  David J. MacKenzie  (djm at apple-gunkies)
  420.  
  421.     * ls.c (print_file_name_and_frills,
  422.     length_of_file_name_and_frills, print_long_format):
  423.     Allow 6 digits for i-number, not 5.
  424.  
  425. Sun Jun 17 00:09:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  426.  
  427.     * install.c (install_dir): Don't check whether "" or the root
  428.     directory exists (the former fails on some systems).
  429.  
  430.     * system.h: Make inclusion of sys/file.h conditional on USG
  431.     and _POSIX_SOURCE, not DIRENT.
  432.  
  433.     * chmod.c (change_dir_mode): Use xrealloc instead of free and
  434.     xmalloc in case malloc already left extra room.
  435.     (xrealloc): New function.
  436.  
  437.     * rm.c (clear_directory): Prevent buffer overruns.
  438.     More efficient string handling.  Don't skip rest of directory
  439.     if continuing after finding circular inode.
  440.     (xrealloc): New function.
  441.  
  442. Sat Jun 16 01:45:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  443.  
  444.     * argmatch.c (invalid_arg): Change order in which the items
  445.     are printed. 
  446.  
  447.     * ls.c: Add +tabsize (-T) option.
  448.  
  449. Fri Jun 15 23:40:55 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  450.  
  451.     * dd.c (scanargs): For ibs and obs, set C_HARDWAY.
  452.     (copy): Use different buffers only if C_HARDWAY, not if
  453.     blocksizes are the same, to ensure constant output block sizes.
  454.  
  455. Wed Jun 13 23:56:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  456.  
  457.     * savedir.c: New file from code in chmod.c, modified to
  458.     prevent buffer overruns.
  459.     * chmod.c (change_dir_mode), cp.c (copy_dir), du.c
  460.     (count_entry): Use savedir.
  461.  
  462. Thu Jun  7 03:52:02 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  463.  
  464.     * system.h (ST_BLKSIZE) [!STBLOCKS_MISSING]: If st_blksize is
  465.     0 (as on pipe reads on some systems), use BSIZE instead.
  466.     Define BSIZE as DEV_BSIZE if necessary.
  467.  
  468.     * Makefile, system.h, fileblocks.c: Use STBLOCKS_MISSING to
  469.     control whether st_blksize and st_blocks are used.
  470.     * Makefile, system.h, backupfile.c: Use DIRENT to control
  471.     whether <dirent.h> is used.
  472.  
  473. Sun Jun  3 20:26:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  474.  
  475.     * cat.c (main): Add a variable to control whether the check
  476.     for input file == output file is made, because no values of
  477.     st_dev and st_ino should be assumed to be available for this
  478.     purpose.  Only do the check for regular files.
  479.  
  480.     * tac.c: Use bcopy instead of memcpy.
  481.  
  482. Wed May 30 15:34:47 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
  483.  
  484.     * cut.c (main)  Don't dereference 0 while parsing args.
  485.  
  486. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  487.  
  488.     * fileblocks.c: New file.
  489.     * du.c (blocks_to_kb): Replace with convert_blocks macro.
  490.     (main): Recognize new -k option.
  491.     (usage): Document it.
  492.     * ls.c (nblocks): Replace with convert_blocks macro.
  493.     * system.h (ST_BLKSIZE) [USG]: Use BSIZE from sys/param.h instead of
  494.     having the user define BLKSIZE.
  495.     (ST_NBLOCKS) [USG]: Use st_blocks from fileblocks.c.
  496.  
  497.     * head.c: Use longs instead of ints for file offsets, for 16
  498.     bit machines.
  499.  
  500.     * cat.c, chmod.c, cmp.c, cp.c, cp.h, create.c, dd.c, dirlib.c,
  501.     du.c, head.c, system.h, backupfile.c, ln.c, ls.c, install.c,
  502.     mkdir.c, mkfifo.c, modechange.c, mv.c, mv_dir.c, rm.c,
  503.     rmdir.c, tail.c, tac.c: Optionally use ANSI C and POSIX header files.
  504.  
  505. Wed May 23 00:40:39 1990  David J. MacKenzie  (djm at apple-gunkies)
  506.  
  507.     * argmatch.c: New file, taken from ls.c.
  508.     * getversion.c (get_version): Use argmatch, to allow
  509.     abbreviations.  Default backup type is existing_numbered.
  510.     * mv.c (main), ln.c (main), cp.c (main): Only make backups if
  511.     -b (+backup) is given.  If envar SIMPLE_BACKUP_SUFFIX is set,
  512.     use it as a default instead of `~'.
  513.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Update messages.
  514.  
  515. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  516.  
  517.     * install.c: New file (from ../bin-src).
  518.  
  519.     * cmp.c: Change some ints to longs for 16 bit machines.
  520.     (bcmp_cnt): Make char-pointer counting slightly simpler.
  521.  
  522.     * dd.c (copy): Don't count completely failed writes as partial
  523.     writes.  Make buffers unsigned.  If blocking or unblocking,
  524.     pad final partial buffer if necessary.
  525.  
  526.     * getversion.c: New file.
  527.     * mv.c (main), cp.c (main), ln.c (main): Control backup types
  528.     with getenv ("VERSION_CONTROL") and +version-control or -V.
  529.  
  530.     * cp.c (yesno), mv.c (yesno), ln.c (yesno): Stop reading if
  531.     EOF reached as well as at newline.
  532.  
  533.     * backupfile.[ch]: Rename var `version_control' to `backup_type'.
  534.  
  535. Sat May 19 23:38:46 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  536.  
  537.     * touch.c: Change some error messages.  Include "getopt.h".
  538.  
  539. Sat May 19 00:16:50 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  540.  
  541.     * mv.c (main), ln.c (main), cp.c (main): Revise
  542.     backup-creation options.
  543.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Revise messages.
  544.  
  545.     * chmod.c (describe_change): Use mode_string instead of
  546.     filemodestring. 
  547.  
  548.     * cp.c (main): Recognize new options for making backups.
  549.     * cp.c (copy): Make backups if requested.  Fix typo.
  550.     * cp-aux.c (usage): Update message.
  551.  
  552.     * mv.c, cp.c: Remove code to conditionally use utimes instead
  553.     of utime, since the extra resolution of utimes was not being
  554.     used, the emulation overhead is probably insignificant,
  555.     and utime is a standard function.
  556.  
  557.     * cp-hash.c: Fix up comments.
  558.  
  559. Fri May 18 23:06:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  560.  
  561.     * mv.c (do_move): Only make backup if dest file exists.
  562.     Don't continue moving file if dest can't be backed up.
  563.     * ln.c (do_link): Don't try to unlink dest if it was backed up.
  564.     Don't continue moving file if dest can't be backed up.
  565.  
  566.     * system.h: Make SIGTYPE default to void if not defined.
  567.  
  568.     * modechange.[ch]: Rename struct and external functions to start
  569.     with 'mode_'.
  570.     * modechange.c (oatoi): Make static.
  571.     (mode_compile): Take an additional arg indicating which
  572.     symbolic operators should be affected by the umask.
  573.     * modechange.h: Add defines for mode_compile arg mask.
  574.     If __STDC__, use prototypes.
  575.     * chmod.c, mkdir.c, mkfifo.c, create.c: Account for above changes.
  576.  
  577. Tue May 15 16:17:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  578.  
  579.     * dd.c (copy): Quit with nonzero status if final write fails.
  580.  
  581. Mon May 14 14:34:10 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  582.  
  583.     * tac.c, regex.c, regex.h: New files.
  584.  
  585.     * dd.c: Make translation tables unsigned.
  586.     (main): Give `input_file' and `output_file' nonzero values for
  587.     stdin and stdout. 
  588.     (parse_conversion): Set new global vars 'space_character' and
  589.     'newline_character' to correct values when translating to EBCDIC
  590.     (either flavor).
  591.     (copy): Use 'space_character' and 'newline_character' instead
  592.     of hardcoded ASCII values.  Ignore attempts to seek on output pipe,
  593.     socket, or fifo.  If possible, seek instead of reading to skip
  594.     initial input records.  Sync with `space_character' instead of
  595.     nulls, for POSIX.
  596.  
  597.     * cp.c (copy_reg): Compare lseek values as longs, not ints.
  598.  
  599. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  600.  
  601.     * cp-hash (remember_created): Return error status instead of
  602.     fatal error. 
  603.     * cp.c (copy): Change caller.
  604.     (do_copy, copy_reg): Return error status instead of fatal error.
  605.  
  606.     * cat.c (main): Allow input file to be output file for devices
  607.     (ttys, etc.).  Check whether input file is output file when
  608.     reading standard input.  Print any error messages for standard
  609.     input. 
  610.  
  611.     * cmp.c (bcmp_cnt): Handle int comparisons correctly on 16 bit
  612.     machines as well as 32 bit ones.
  613.     * cmp.c, tail.c, ls.c, cp.c, du.c: Use longs instead of ints
  614.     for file offsets. 
  615.  
  616.     * Move rename emulation from mv.c to dirlib.c so other
  617.     programs can use it.
  618.     * mv.c, ln.c (main): Recognize new options for making backups.
  619.     * mv.c (do_move), ln.c (do_link): Make backups if requested.
  620.     * mv.c, ln.c (usage): Update message.
  621.     * backupfile.c, backupfile.h: New files.
  622.  
  623.     * cp.h: Ifdef out decl of umask because of SunOS 4.1 (POSIX) conflict.
  624.  
  625.     * Define all `main' functions as returning void.
  626.  
  627. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  628.  
  629.     * ln.c, mv.c, rm.c, rmdir.c, create.c, chmod.c: Change some
  630.     error messages. 
  631.  
  632.     * cmp.c: Fix some exit statuses for POSIX.
  633.  
  634.     * du.c, cmp.c, cat.c, cp-aux.c (error): Function removed.
  635.     Change callers to use error.c version.
  636.     * cp.c (copy, do_copy, copy_dir): Return an error status.
  637.     * ls.c (error, fatal, perror_with_name): Functions removed.
  638.     Change callers to use error.c.
  639.  
  640. Tue May  8 03:41:42 1990  David J. MacKenzie  (djm at abyss)
  641.  
  642.     * tac.c: Use regular expressions as the record boundaries.
  643.     Give better error messages.
  644.     Reformat code and make it more readable.
  645.     (main): Use getopt_long to parse options.
  646.     (tac_stdin): Do not make a temporary file if standard input
  647.     is a file.
  648.     (tac_file): New function.
  649.     (tac): Take an open file desc as an arg.
  650.     (output): Rewrite to use its own efficient buffering.
  651.     (xmalloc, xrealloc, xwrite): New functions.
  652.  
  653. Sat May  5 23:46:48 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  654.  
  655.     * ln.c (do_link): Don't allow trying to link a file to itself,
  656.     because the source file would be removed if they are the same
  657.     directory entry, and also for consistency with mv and cp.
  658.  
  659. Fri May  4 13:42:53 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  660.  
  661.     * cp.c (copy_reg): Only write a null to the end of the file if
  662.     the end of the file was sparse.
  663.  
  664.     * ls.c (print_name_with_quoting): Make the char to print
  665.     unsigned to prevent sign extension problems with -b.
  666.  
  667. Fri Apr 20 13:52:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  668.  
  669.     * Version 1.2 released.
  670.  
  671. Wed Apr 18 14:36:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  672.  
  673.     * Makefile: Use chsize for ftruncate on Xenix.
  674.  
  675.     * cp.c (copy): Remove broken code that attempted to
  676.     substitute for ftruncate on systems missing it.
  677.  
  678. Mon Apr 16 13:58:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  679.  
  680.     * cp-aux.c (usage): Fix mistake in message.
  681.  
  682.     * Version 1.1 released.
  683.  
  684. Sat Apr 14 17:23:11 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  685.  
  686.     * ls.c (main): Don't remove leading path from program_name.
  687.     (basename): Function removed.
  688.     (length_of_file_name_and_frills): Don't add 1 for type indicator
  689.     for block and character special files. 
  690.  
  691. Thu Apr 12 19:50:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  692.  
  693.     * Makefile: Suggest using -DBLKSIZE=512 instead of 1024 for USG.
  694.  
  695.     * dd.c (copy): Print copying statistics when exiting because
  696.     of a read or seek error.
  697.     (interrupt_handler): New function.
  698.     (main): Trap SIGINT to run interrupt_handler, for POSIX.
  699.  
  700. Tue Apr 10 01:09:38 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  701.  
  702.     * chmod.c (change_file_mode): Don't change the mode of
  703.     symbolic links.
  704.  
  705. Mon Apr  9 13:30:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  706.  
  707.     * modechange.c (compile_mode): Return an error if an octal
  708.     number argument is too large.
  709.  
  710. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  711.  
  712.     * dd.c: Use `error' instead of `fatal' and `pfatal_with_name',
  713.     for greater control of the message format.
  714.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  715.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  716.     * chmod.c, create.c, ln.c, mkdir.c, mkfifo.c, mv.c, mv_dir.c,
  717.     rm.c, rmdir.c: Remove definition of `error'.
  718.     * error.c: New file created from code in mv.c.
  719.     * Makefile: Link the above programs with error.o.
  720.  
  721.     * ln.c (do_link): Use eaccess_stat to determine writability.
  722.     * mv.c (do_move): Ditto.
  723.     * rm.c (remove_file): Ditto.
  724.     (remove_dir): Use eaccess_stat to determine readability and
  725.     searchability.  Move initial interactive query here from
  726.     clear_directory. 
  727.     * Makefile: Link ln, mv, and rm with eaccess.o.
  728.  
  729. Sat Apr  7 11:47:52 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  730.  
  731.     * Makefile: Link cp with eaccess.o.
  732.     * eaccess.c: New file adapted from code in cp.c and cp-aux.c.
  733.     * cp.c (copy): Use eaccess_stat to determine writability.
  734.     Consider a file unwritable by root if it has no permissions.
  735.     (main): Remove groups initialization code.
  736.     * cp-aux.c (member): Function deleted.
  737.  
  738.     * cp.c (copy): Temporarily change the mode of directories if
  739.     necessary to overwrite them when running recursively.
  740.     Consider a directory to be non-overwritable if it lacks write
  741.     permission as well as if it lacks execute permission.
  742.  
  743.     * cat.c (main), cp.c (copy_reg): Don't check error from close,
  744.     because we know the arg is good and so it cannot fail.
  745.  
  746.     * rm.c, mv.c, mv_dir.c, chmod.c, create.c, ln.c: Remove some
  747.     irrelevant or redundant information from error messages.
  748.  
  749. Fri Apr  6 15:20:45 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  750.  
  751.     * cp.c (copy): Only change mode of regular files and directories;
  752.     others are already correct.
  753.  
  754. Thu Apr  5 04:31:56 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  755.  
  756.     * dd.c: Remove the vars that are set by command line options
  757.     from a useless struct and give them more meaningful names.
  758.  
  759. Mon Apr  2 02:58:34 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  760.  
  761.     * cp.c (main): Use NGROUPS from sys/param.h to determine
  762.     whether BSD multiple groups are supported and how large to
  763.     make the array.
  764.     * Makefile: Remove references to GETGROUPS_MISSING.
  765.  
  766. Sun Apr  1 18:53:57 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  767.  
  768.     * cp.c (main): Always initialize group info.
  769.  
  770. Sat Mar 31 22:29:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  771.  
  772.     * mkfifo.c, create.c, mv_dir.c: New files.
  773.     * Makefile: Add rules for them.
  774.     * mv.c [RENAME_MISSING] (rename): To rename directories, run
  775.     setuid root mv_dir program. 
  776.  
  777. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  778.  
  779.     * touch.c: Remove POSIX_COMPAT ifdef since there is no reason
  780.     to disable the GNU extensions.
  781.     (main): Set new global var `program_name'.
  782.     (error): Replace with more versatile version.
  783.     Global: Change calls to fprintf and error to use the new error.
  784.     (main): Initialize global variables.  Don't bother making
  785.     temporary copy of arg to -d.  Don't ignore any files named on
  786.     the command line if -i is given.
  787.     (usage): Don't take an arg.  Use `program_name' instead of
  788.     hardcoded name.
  789.     (touch): In utime emulation for BSD, ftruncate the file to its
  790.     original size so empty files stay empty after being touched.
  791.  
  792. Sun Mar 18 01:02:39 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  793.  
  794.     * ln.c (strip_trailing_slashes): New function.
  795.     (main, do_link): Call it.
  796.  
  797.     * cp-aux.c (strip_trailing_slashes): New function.
  798.     * cp.c (do_copy): Call it.
  799.     * cp.h: Declare it.
  800.  
  801.     * mv.c (strip_trailing_slashes): New function.
  802.     (main, movefile): Call it.
  803.  
  804. Sat Mar 17 21:45:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  805.  
  806.     * cp-aux.c, cp.h: Rename user_confirm_overwriting to yesno and
  807.     don't have it print a prompt, so it can be used in several
  808.     places. 
  809.  
  810.     * cp.c (do_copy): Change an error message to resemble mv's.
  811.     Remove all trailing slashes from all non-option args.
  812.     (main): Set new global var `stdin_not_tty'.
  813.     (copy): Use POSIX method of handling file overwriting and
  814.     prompting. 
  815.  
  816.     * dirlib.c (mkdir): Use chmod to set the directory mode after
  817.     successful creation, so set[ug]id and sticky bits are set
  818.     correctly. 
  819.  
  820. Thu Mar 15 12:33:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  821.  
  822.     * Makefile: Add commented out definitions for SCO Xenix.
  823.  
  824.     * ls.c (print_type_indicator): Don't print a '*' next to
  825.     executable block or character special files.
  826.  
  827.         * chmod.c (error): New function, replacing nonfatal_perror,
  828.         memory_out, and invalid_mode.
  829.         Global: Call error instead of the above functions.
  830.     (change_dir_mode): Make the new size of the path twice the
  831.     size of the name that was too long, rather than twice its old
  832.     size. 
  833.  
  834.     * rm.c: Move interactive query about whether to remove a
  835.     directory from remove_dir to clear_directory; only query for
  836.     directories that are not empty.
  837.  
  838. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  839.  
  840.     * system.h [USG]: Define X_OK.
  841.  
  842.     * rm.c (main): Set new global var `stdin_not_tty'.
  843.     (rm): Most of code moved to two new functions, remove_file and
  844.     remove_dir.
  845.     (remove_file): Use POSIX method of determining whether to remove
  846.     non-directories.
  847.     (remove_dir): Use POSIX method of determining whether to
  848.     remove directories, almost.
  849.     (perror_with_name): Function removed.
  850.     (error): Simple version replaced with more powerful version.
  851.     Global: Change calls to fprintf, perror_with_name, and old
  852.     error to calls to new error.
  853.  
  854.     * ln.c (main): Set new global var `stdin_not_tty'.
  855.     If force, turn off interactive.
  856.     (do_link): By default, don't allow hard links to symbolic links to
  857.     directories.  Use POSIX method of determining whether to
  858.     overwrite destination.
  859.     (yesno): Function renamed from confirm, and arg removed.
  860.     (lisdir): Function removed.
  861.  
  862.     * mv.c (main): Set new global var `stdin_not_tty'.
  863.     (yesno): Function renamed from yes.
  864.     (do_move): Use POSIX method of determining whether to
  865.     overwrite destination.
  866.  
  867.     * Makefile: Make executables depend on .o files, not .c files,
  868.     to allow for parallel compilation.
  869.  
  870.     * cmp.c (main, cmp, usage): Replace -q +quick option with -L
  871.     +show-chars option to add ASCII representation of bytes to -l format.
  872.  
  873. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  874.  
  875.     * rm.c (main): Disallow removal of paths that have '..' as the
  876.     final element.
  877.     (basename): New function.
  878.  
  879.     * ls.c (print_type_indicator): Mark FIFOs with '|' and sockets
  880.     with '='.
  881.     (print_long_format): Print numbers as unsigned and add extra
  882.     space for POSIX flag.
  883.  
  884.     * dd.c: Make the record counts unsigned.
  885.     (quit): Print them as unsigned.
  886.  
  887.     * cmp.c (cmp): Change EOF message for POSIX compatibility.
  888.     For -l format, clear bits > FF.
  889.  
  890.     * modechange.c (compile_mode): Only get umask value when needed.
  891.     If users are not given or are `a', affect set?id and sticky bits.
  892.     If memory is exhausted while allocating a new list element,
  893.     free the old elements before returning.
  894.  
  895.     * Makefile (CC): Add comment noting that either fixincludes or
  896.     -traditional needs to be used for gcc to compile ioctl calls
  897.     correctly. 
  898.  
  899. Mon Mar 12 16:25:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  900.  
  901.     * touch.c [UTIME_OF_NULL_MISSING]: Call lseek() before write().
  902.  
  903.     * posixtime.y [__GNUC__]: Use __builtin_alloca.
  904.  
  905. Fri Mar  9 10:25:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  906.  
  907.     * chmod.c (main): Recognize "a,+-=" as valid options.
  908.  
  909.     * mv.c: Move the code to copy files across filesystems from
  910.     do_move to a new function, copy, which will eventually be
  911.     replaced with modules from cp and rm (POSIX requires mv to
  912.     move directories recursively across filesystems).
  913.     (do_move): Don't query about overriding a mode that prohibits
  914.     writing if interactive.  Remove unneeded variable.
  915.     (copy): Unlink target if copy fails partway through.
  916.  
  917. Thu Mar  8 10:56:16 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  918.  
  919.     * cp.c (copy): Don't remove a destination file of a different
  920.     type unless +force is given.
  921.  
  922.     * ls.c (decode_switches, usage): Add -U (for "unsorted") as an
  923.     equivalent to +sort=none.
  924.  
  925. Mon Mar  5 17:21:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  926.  
  927.     * tail.c: Move global `errors' into main instead of having
  928.     nonfatal_perror set it.
  929.     (tail, tail_chars, tail_file, tail_lines, pipe_chars, pipe_lines):
  930.     Return an error status.
  931.     (file_lines, start_chars, start_lines): Reverse the meaning of
  932.     the return value.
  933.     (tail_lines, tail_chars): Account for that reversal.
  934.  
  935. Mon Mar  5 16:31:14 1990  Torbj|rn Granlund  (tege at echnaton)
  936.  
  937.     * cp.c (copy): Test for temporarily modified permission mode
  938.       after the other test, so that `-p' work for files whose mode
  939.       needed a temporary mode change.
  940.     * cp.c (copy): Don't waste time calling unlink if we already
  941.       know that the destination doesn't exists.
  942.     * cp.c (comment before do_copy): Correct.
  943.     * cp.c (comment before copy): Describe all params.
  944.     * cp.c (copy): Only change permission mode for regular files
  945.       and directories.
  946.     * cp.c (copy): Unlink the destination file if its type is
  947.       different from the source.  If the destination is a
  948.       directory,  error.
  949.  
  950. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  951.  
  952.     * chmod.c (nonfatal_perror): Don't check for force_silent.
  953.     (change_file_mode, change_dir_mode): If force_silent, don't
  954.     print error messages.
  955.  
  956.     * mv.c (main): If force, turn off interactive.
  957.     (do_move): Simplify check for query.  Rename `stb' to
  958.     `to_stats' and `stbf' to `from_stats'.
  959.     Return error condition if original file could not be renamed or
  960.     unlinked. 
  961.  
  962.     * rm.c: Rename global `force_flag' to `ignore_errors' and change its
  963.     meaning so that it does not overlap with `override_mode'.
  964.     (main): Have -f +force set override_mode.  If override_mode is
  965.     set, turn off interactive.
  966.     (rm): Simplify checks for whether to query the user, based on
  967.     the new relationship between override_mode and interactive.
  968.  
  969.     * head.c: Move global `errors' into main and have the various
  970.     functions return an error status instead of setting it in
  971.     nonfatal_perror. 
  972.  
  973. Sun Mar  4 23:39:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  974.  
  975.     * ln.c (main): Reword an error message to be more like mv's.
  976.  
  977.     * rmdir.c: Move global `errors' into main instead of having 
  978.     error set it.
  979.  
  980.     * mkdir.c: Move global `errors' into main and have make_path
  981.     return an error status instead of having error set it.
  982.  
  983.     * chmod.c: Move global `errors' into main and have
  984.     change_file_mode and change_dir_mode return an error status
  985.     instead of setting it in nonfatal_perror.
  986.  
  987. Sat Mar  3 13:59:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  988.  
  989.     * ln.c (main): Don't strip leading dirs from argv[0].
  990.  
  991.     * ln.c (confirm), mv.c (yes, do_move),
  992.     cp-aux.c (user_confirm_overwriting), rm.c (rm, yesno, check_stack):
  993.     Print query messages to stderr instead of stdout, for POSIX.
  994.     Include program name in messages.
  995.  
  996. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  997.  
  998.     * cmp.c (cmp): Call function bcmp_cnt for flag == 0 (i.e. no
  999.       options specified), to compare the two blocks and count
  1000.       newlines simultaneously.
  1001.     * cmp.c New function: bcmp_cnt.
  1002.  
  1003.     * cmp.c (main): Test if output is redirected to /dev/null, and
  1004.       assume `-s' if this is so.
  1005.  
  1006.     * cp.c (copy): Don't unlink directories with flag_force
  1007.       (`-f').  Also avoid using force when not necessary.
  1008.       Always copy fifo's and symbolic links as themselves.
  1009.  
  1010.     * cp.c (copy_reg): Make int scan first, char scan then, to
  1011.       find frist non-zero byte.  This to avoid false hole
  1012.       creation.
  1013.  
  1014. Sat Mar  3 10:22:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1015.  
  1016.     * mv.c: Rename `pgm' to `program_name'.  Move global `errors'
  1017.     into main.  Have do_move and movefile return an error status
  1018.     instead having error set it.  Remove global vars `args'
  1019.     and `args_left'.
  1020.     (main): Rename `ac' and `av' to `argc' and `argv' and use them
  1021.     and `optind' instead of `args' and `args_left'.
  1022.  
  1023.     * cp.c (copy): Don't ignore errors other than EPERM from chown.
  1024.  
  1025. Fri Mar  2 16:20:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1026.  
  1027.     * rm.c (main, usage): Allow -R as a synonym for -r, for POSIX.
  1028.  
  1029.     * cp.c (copy): If flag_preserve, preserve the owner and group
  1030.     if possible, as well as mode.
  1031.     (main): Allow -R as a synonym for -r option, for POSIX.
  1032.     * cp-aux.c (usage): Mention -R.
  1033.  
  1034. Tue Feb 27 11:49:04 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1035.  
  1036.     * cp.c (copy): If not recursive, copy special files and
  1037.     symlinks like regular files and omit fifos.
  1038.  
  1039. Mon Feb 26 19:55:24 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1040.  
  1041.     * ls.c (print_long_format): If time is in the future, print
  1042.     the year.
  1043.     Make the cutoff for old files 6 months not 300 days.
  1044.  
  1045. Mon Feb 26 13:31:07 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1046.  
  1047.     * touch.c, Makefile: Use getdate.y instead of unctime.y.
  1048.  
  1049.     * touch.c: Remove posixtime.
  1050.     (main): Check for error from posixtime.
  1051.     posixtime.y: New file.
  1052.  
  1053.     * touch.c: Change a few cryptic error messages.
  1054.  
  1055.     * touch.c: Include <errno.h> not <sys/errno.h>.
  1056.  
  1057.     * touch.c: just_set_amtime: New variable.
  1058.     (touch): Add if (just_set_amtime) code.
  1059.  
  1060. Mon Feb 26 15:03:29 1990  Torbj|rn Granlund  (tege at echnaton)
  1061.  
  1062.     * cp.c (copy): Test for recursive copy in DIR alternative in
  1063.       the switch statement, so all file types are copied correctly
  1064.       even in a non-recursive copy.
  1065.     * cp.c (copy): Return after having created a symlink, since
  1066.       chmod and utimes dereference, and would affect the symlink
  1067.       target.  Remove test for symlinks after switch.
  1068.  
  1069. Sun Feb 25 18:31:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1070.  
  1071.     * Makefile: Compile ls after vdir so systems with a cc that
  1072.     can't do -c -o don't have to compile ls.c twice for ls.
  1073.  
  1074.     * dd.c (usage): Add braces around alternatives.
  1075.  
  1076.     * ls.c (print_long_format): Always print the group, for POSIX.
  1077.     (decode_switches): Make -g option a no-op for BSD users.
  1078.     (usage): Remove +group option.
  1079.  
  1080.     * cat.c (main, usage): Add -c option, identical to -s, for
  1081.     POSIX.  Alphabetize short options.
  1082.  
  1083. Wed Feb 21 11:13:26 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1084.  
  1085.     * ln.c (error): New function.
  1086.     (main, do_link): Call error instead of fprintf and exit.
  1087.     (main): Recognize new -d +directory option to allow superuser to
  1088.     make hard links to dirs, like the BSD ln -f option.
  1089.     (do_link): Don't allow hard links to dirs (they are hard to
  1090.     get rid of -- rmdir and unlink don't do it), unless -d was given.
  1091.     (usage): Mention -d +directory option.
  1092.  
  1093.     * rmdir.c (main): Remove trailing slashes from args (added by
  1094.     shell file completion but the rmdir syscall can't handle them).
  1095.     * mkdir.c (main): Remove trailing slashes from args, for
  1096.     uniformity with rmdir (you can't do file completion on dirs
  1097.     that haven't been made yet . . .).
  1098.  
  1099.     * mv.c: Rename global var `nargs' to `args_left' to avoid
  1100.     conflict with undocumented BSD libc function (the new name is
  1101.     clearer, anyway).
  1102.  
  1103. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1104.  
  1105.     * dd.c: Use new global var `program_name' in error messages
  1106.     instead of hardcoded "dd".
  1107.     (main): Set program_name from argv[0].
  1108.  
  1109.     * chmod.c, head.c, tail.c (main): Don't strip leading dirs
  1110.     from argv[0].
  1111.     (basename): Function removed.
  1112.  
  1113.     * rm.c (main): Don't strip leading dirs from argv[0].
  1114.  
  1115.     * cat.c: Change `argbad' from a char to a short, so it will
  1116.     work on machines with unsigned chars.
  1117.  
  1118. Mon Feb 19 14:34:18 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1119.  
  1120.     * rm.c (main): Strip trailing slashes from each arg.
  1121.  
  1122. Thu Feb 15 13:23:52 1990  David J. MacKenzie  (djm at rice-chex)
  1123.  
  1124.     * Makefile [HPUX CFLAGS]: Add -DUTIMES_MISSING.
  1125.  
  1126. Wed Feb 14 15:01:18 1990  David J. MacKenzie  (djm at rice-chex)
  1127.  
  1128.     * Makefile (dist): Don't make a non-compressed tar file.
  1129.  
  1130.     * mv.c (do_move): Refuse to copy non-regular files across filesystems.
  1131.  
  1132. Tue Feb 13 15:06:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1133.  
  1134.     * touch.c (getname): New function.
  1135.     (main): Use it.
  1136.  
  1137. Mon Feb 12 11:30:45 1990  David J. MacKenzie  (djm at rice-chex)
  1138.  
  1139.     * ln.c (do_link): Check error return from unlink.
  1140.     Include errno.h.
  1141.  
  1142.     * du.c (main): Check error return from stat.
  1143.     (str_copyc, str_concatc): Don't return a value, since it is
  1144.     ignored. 
  1145.  
  1146.     * cp.c (copy): Check error return from unlink and chmod.  Fix
  1147.     typo in call to error.
  1148.  
  1149.     * mv.c (do_move): Check error return of fchmod/chmod and utime[s].
  1150.     (rename): Check error return of unlink.
  1151.  
  1152.     * Makefile Definitions of preprocessor macros moved from
  1153.     cp.c and mv.c.  HAVE_FTRUNCATE changed to FTRUNCATE_MISSING.
  1154.     * Makefile, dirlib.c: NEED_MKDIR changed to MKDIR_MISSING.
  1155.     * mv.c, cp.c: Change USG ifdefs to UTIMES_MISSING.
  1156.  
  1157. Sun Feb 11 17:50:29 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1158.  
  1159.     * chmod.c (usage): Add yet another ellipsis.
  1160.  
  1161. Sun Feb 11 16:41:30 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  1162.  
  1163.     * cp.c (copy_reg): Use HAVE_FTRUNCATE to decide whether to
  1164.     use ftruncate().
  1165.     (main): Use GETGROUPS_MISSING to decide whether to use getgroups().
  1166.     [hpux || !USG]: Define HAVE_FTRUNCATE.
  1167.     [USG && !hpux]: Define GETGROUPS_MISSING.
  1168.     mv.c (rename): Put in #ifdef RENAME_MISSING not #ifdef USG.
  1169.     (do_move): Use FCHMOD_MISSING to decide whether to use fchmod().
  1170.     [USG && !hpux]: Define FCHMOD_MISSING and RENAME_MISSING.
  1171.  
  1172. Sat Feb 10 02:16:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1173.  
  1174.     * cmp.c (cmp): Rename `r' to `first_diff', and `x' to `smaller'.
  1175.     Remove unneccessary variable `c1'.  If -l was given, increase
  1176.     `char_number' by the number of bytes read, after producing output,
  1177.     rather than by the offset of the first differing bytes, before
  1178.     producing output.
  1179.     Replace if-else-if constructions with case statements for clarity.
  1180.     (bcmp2): Rename `n' to `nread'.
  1181.  
  1182. Fri Feb  9 10:25:03 1990  David J. MacKenzie  (djm at rice-chex)
  1183.  
  1184.     * mv.c (movefile): Remove trailing slashes from FROM (some
  1185.     filename completion systems add them for dirs, and they cause
  1186.     the rename syscall to fail).
  1187.  
  1188. Thu Feb  8 22:50:12 1990  Torbj|rn Granlund  (tege at sics.se)
  1189.  
  1190.     * cp.c (copy_reg): Change error handling after lseek, since
  1191.       this is a fatal error.  Also change error message to
  1192.       something more generally understood.
  1193.     * Handle files that end in a zero block on USG systems.
  1194.  
  1195.     * cp-aux.c (error): Use FATAL to recog fatal errs.
  1196.  
  1197. Thu Feb  8 21:25:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1198.  
  1199.     * ln.c: Remove incorrect comment.
  1200.  
  1201.     * cp.c, cp-aux.c (usage): Change +dereference option to
  1202.     +no-dereference, since dereferencing is done by default and
  1203.     the option turns it off.
  1204.  
  1205. Mon Feb  5 17:29:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1206.  
  1207.     * Version 1.0 released.
  1208.  
  1209. Local Variables:
  1210. mode: indented-text
  1211. left-margin: 8
  1212. version-control: never
  1213. End:
  1214.